# $Id: PKGBUILD 87508 2013-04-02 00:26:38Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

_pkgname=ubuntuone-storage-protocol
pkgname=python2-ubuntuone-storageprotocol
pkgver=4.2.0
pkgrel=1
pkgdesc="Library for the Ubuntu One storage protocol, which is written using google protocol buffers, and some wrapper libraries in python"
arch=('any')
url="https://launchpad.net/ubuntuone-storage-protocol"
license=('AGPL')
depends=('python2-dirspec' 'python2-oauthlib' 'python2-pyopenssl' 'protobuf-python' 'twisted')
makedepends=('python2-distribute')
source=(https://launchpad.net/$_pkgname/stable-4-2/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('935625de2a0eb861a9a6b80a62e8ac37')

build() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py install --root=$pkgdir/ --optimize=1
}
